package com.xzgj.fmmall.vo;

import com.xzgj.fmmall.entity.ProductImg;
import com.xzgj.fmmall.entity.ProductSku;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "Product对象",description = "商品信息")
public class ProductVO {
    @ApiModelProperty(dataType = "product_id",value = "商品id",required = false)
    private static final long serialVersionUID = 1L;
    private int product_id;
    @ApiModelProperty(dataType = "product_name",required = true,value = "商品名称")
    private String product_name;
    @ApiModelProperty(dataType = "category_id",required = true,value = "分类id")
    private String category_id;
    @ApiModelProperty(dataType = "root_category_id",required = true,value = "根结点类别id")
    private String root_category_id;
    @ApiModelProperty(dataType = "sold_num",required = true,value = "销售量")
    private String sold_num;
    @ApiModelProperty(dataType = "product_status",required = true,value = "商品状态")
    private String product_status;
    @ApiModelProperty(dataType = "content",required = true,value = "商品内容")
    private String content;
    @ApiModelProperty(dataType = "status",required = true,value = "是否上架状态")
    private String status;
    @ApiModelProperty(dataType = "create_time",required = true,value = "注册时间")

    /**
     * 新增商品图片的集合属性---在查询商品的时候，关联查询商品图片信息
     */
    private List<ProductImg> imgs;

    /**
     * 新增商品套餐的集合属性---在查询商品的时候，关联查询商品套餐信息
     */
    private List<ProductSku> skus;
    private String create_time;
    @ApiModelProperty(dataType = "update_time",required = true,value = "更新时间")
    private String update_time;
}
